﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Testing_components
{
    /// <summary>
    /// Interaction logic for RulesTab.xaml
    /// </summary>
    public partial class RulesTab : UserControl
    {
        private bool _loggedin = false;
        private LoginPanel _loginPanel;

        public RulesTab()
        {
            InitializeComponent();
            if (!_loggedin){ _loginPanel = new LoginPanel(this);
            gridRules.Children.Add(_loginPanel);
            }
        }
        public void removeLogin()
        {
            gridRules.Children.Remove(_loginPanel);
            gridRules.Children.Add(new TableRules());
        }
    }
}
